package indi.zhifa.study2024.nbr.busycore.controller;

import indi.zhifa.core.common.web.entity.ann.ZhiFaRestController;
import indi.zhifa.study2024.nbr.busycore.logic.curd.init.IInitDataService;
import io.swagger.v3.oas.annotations.tags.Tag;
import lombok.RequiredArgsConstructor;
import lombok.extern.slf4j.Slf4j;
import org.springframework.validation.annotation.Validated;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestMapping;

@Slf4j
@Validated
@RequiredArgsConstructor
@RequestMapping(value = "/nbr/busy-core/init")
@ZhiFaRestController
@Tag(name = "初始化数据")
public class InitController {
    private final IInitDataService mInitDataService;

    @PostMapping
    public void init(){
        mInitDataService.initData();
    }
}
